﻿/*======================================================================
== Copyright : BlueCurve (c)
== Licence   : Gnu/GPL v2.x
== Author    : Teddy Albina
== Email     : bluecurveteam@gmail.com
== Web site  : http://www.codeplex.com/BlueCurve
========================================================================*/
using System;

namespace BlueCurve.MemoryCache
{
    public interface IKeysCache<Tvalue, Tid, Tdata>
    {
        void Add(Tvalue value, Tid id, Tdata data);
        void Stop();
        void Clear();
        bool Exist(Tvalue value);
        Tdata Get(Tvalue value);
        int LifeTime { get; set; }
    }
}
